#include "KeyboardHandler.h"

namespace GeorgeLib
{

KeyboardHandler::KeyboardHandler(void)
{
	for(int i = 0; i < 255; ++i)
	{
		keys[i] = false;
	}
	for(int i = 0; i < 21; ++i)
	{
		special[i] = false;
	}
}

KeyboardHandler::~KeyboardHandler(void)
{
}

void KeyboardHandler::HandleKeyboardDownFunc (uchar key)
{
	keys[key] = true;
}

void KeyboardHandler::HandleKeyboardUpFunc (uchar key)
{
	keys[key] = false;
}

void KeyboardHandler::HandleSpecialDownFunc (int key)
{
	special[key] = true;
}

void KeyboardHandler::HandleSpecialUpFunc (int key)
{
	special[key] = false;
}

} // namespace GeorgeLib